import {Directive, ElementRef} from '@angular/core';

@Directive({
  selector: '[appXuyaoqiangdiao]'
})
export class XuyaoqiangdiaoDirective {

  constructor(el: ElementRef) {
    console.log("需要强调指令实例化")
    console.log(el)
    el.nativeElement.style.background = "#fcc"
    el.nativeElement.style.padding = '10px'
    el.nativeElement.style.color = '#833'
  }

}
